package month4.day5.xingzuang;

public class Rectangle extends Graph {
    private double chang;
    private double kuan;
    public double c(){
        return 2*(chang+kuan);
    }
    public double s(){
        return chang*kuan;
    }

    public Rectangle(double chang, double kuan) {
        this.chang = chang;
        this.kuan = kuan;
    }

    public double getChang() {
        return chang;
    }

    public void setChang(double chang) {
        this.chang = chang;
    }

    public double getKuan() {
        return kuan;
    }

    public void setKuan(double kuan) {
        this.kuan = kuan;
    }
}
